System and method for automatically selecting images to accompany text

ABSTRACT

A system for selecting an image to accompany text from a user in connection with a social media post. The system is capable of receiving text from the user, identifying one or more search terms based on the text, identifying candidate images from images in one or more image databases using the search terms, presenting one or more candidate images to the user, receiving from the user a selected image from the one or more candidate images, generating the social media post comprising the selected image and the user-submitted text, and transmitting the social media post for display.

CROSS-REFERENCE TO RELATED PATENT APPLICATIONS

This application is a Continuation of U.S. Non-Provisional application Ser. No. 14/729,299, filed Jun. 3, 2015, now U.S. Pat. No. 9,384,288, which is a Continuation of U.S. Non-Provisional application Ser. No. 14/478,037, filed Sep. 5, 2014, now U.S. Pat. No. 9,075,812, the full disclosures of which are incorporated herein by reference in their entirely.

BACKGROUND

In the age of social media, multimedia messages containing both text and images may convey thoughts and ideas to others, including social or business contacts or to a larger audience. Selecting an appropriate image to pair with text provided by a user may be a challenging and laborious process, given the large number of images available to an internet user.

Other methods of searching for images require the user to select or identify discrete search terms to find the image and/or search amongst all images on the internet. Those methods do not account for the themes or emotions associated with the sentiment or subject of the text and, as a result, fail to find appropriate images best paired with the user's text. Additionally, such image searches are ad hoc and one-off, not taking into account the prior activity of the user and/or others relating specifically to publishing user's thoughts.

Accordingly, an automated method for choosing images to pair with a user's text may be desirable. A service to publish and share such thoughts, and to track them so that images for future thoughts may be better chosen, may be similarly desirable.

SUMMARY OF THE INVENTION

A system for selecting an image to accompany text from a user in connection with a social media post. The system is capable of receiving text from the user, identifying one or more search terms based on the text, identifying candidate images from images in one or more image databases using the search terms, presenting one or more candidate images to the user, receiving from the user a selected image from the one or more candidate images, generating the social media post comprising the selected image and the user-submitted text, and transmitting the social media post for display.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flow chart of creation of a post in accordance with one aspect of the present invention.

FIG. 2 is a flow chart of a configuration process in accordance with one aspect of the present invention.

FIG. 3 is a flow chart of an image identification and selection process in accordance with one aspect of the present invention.

FIG. 4 is a flow chart of an image identification and selection process in accordance with one aspect of the present invention.

FIG. 5 is a diagram displaying a computer on which the system and method of the present disclosure may be implemented according to an aspect of the present disclosure.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 is a flow chart of creation of a post in accordance with one aspect of the present invention. A “post” may be text displayed along with media, where the text and/or media may be supplied by the user. The media may be an image, video, and/or audio. The post may include associated search terms that may be supplied by the user and/or generated by the system. Some or all of the post may be created by a user and may be published so as to be viewable by the user and possibly others. In Step 1 of the post creation process shown in FIG. 1, the user may input text. In one aspect, the user may optionally also input one or more search terms relating to the post. In another aspect, the system may select search terms based on the text, and the user may optionally edit or add search terms. Each search term may be one or more words included in or associated with the post. In Step 2, based on one or more of the text, the search terms, and posts by the user and/or other users, the system may identify candidate images to accompany the post. This identification process is described in more detail below. In Step 3, the user may select one of the candidate images or may select or input another image. In Step 4, the user finalizes the post and publishes it using the system.

FIG. 2 is a flow chart of a configuration process wherein a corpus of posts are built that may be used to identify one or more candidate images to associate with text in future posts. In Step 11, the system may access or compile posts, for example posts for which the system has text and search terms. The text and corresponding search terms for a post may be stored in a document. In Step 12, each post may be tokenized into the individual words in the post. Step 12 may include the removal of stop words (which may include certain short or less critical words such as “the,” “is,” “at,” “which,” and “on”) and/or may include the normalization of ASCII emoticons in the post. In one aspect of the invention, the system may perform stemming to reduce words to their stem (or base, or root) form for better evaluation. In Step 13, each word may be assigned a positive integer value. In one aspect, the words may be assigned an integer value without regard to the case of the letters with which the word was written (e.g. Sample, sample, and SAMPLE would receive the same integer value). In Step 14, each document d may be mapped to a vector v=f(d) in an N-dimensional vector space V, where N may be, in one aspect, the number of distinct positive integers in the document or any set of unique values could be used as a vector space. f may be a function that receives a sentence/document d and outputs a vector where the value of each word b_i may be the number of times b_i appears in d multiplied by the fraction of 1/(the number of times b_i appears in the entire corpus). This process is known as bag-of-words representation, weighted by TF-IDF, also known as term frequency-inverse document frequency. This process helps identify unusual or less-common words that may be indicative or unique thoughts in the text, while ignoring more commonly occurring words.

Once the corpus is built, it may be used to find prior posts similar to the new post currently being submitted to the system, so that similar images can be located and presented to the user creating the new post. FIG. 3 is a flow chart depicting the image identification and selection process after text for a new post has been submitted by the user. In Step 21, the text of the post may be sent from the user client to the server. In one aspect, the system, including the methods depicted herein, may run on a server, and the server may periodically communicate with a plurality of clients allowing users to read and write posts. In Step 22, the text of the submitted post may be mapped to vector space V to identify similar posts. This may be the same vector space as discussed with reference to Step 14 in FIG. 2. In Step 23, the system searches for similar posts in the corpus. In accordance with one aspect of the invention, this list may include a predetermined number of most similar posts, e.g., 100, or may use another threshold determining factor to identify similar posts. The similar posts may be limited to those with known search terms. In accordance with one aspect, similar posts are identified using cosine similarity as the distance function (i.e., the measure of the angle between the two vectors representing the two posts). In Step 24, the system determines whether a threshold number of similar posts exist. If not (“No”, Step 24), then in Step 32 the system may perform a sentiment analysis on the post text that will output a sentiment of the content of the text. In one aspect, if the sentiment analysis deems the text to have a positive emotional sentiment, then the sentiment analysis may output positive emotional terms such as “sunlight” and “smile”. If the sentiment analysis deems the text to have a negative emotional sentiment, then the sentiment analysis may output negative emotional terms such as “cold” and “dark”. The output of the sentiment analysis may be saved as search terms to correspond with the post. Once those search terms are known, the system may perform a search on one or more image provider databases using the search term(s) in Step 30, and the resulting candidate images are received in Step 31.

If similar, the results from a similarity search exist (“Yes”, Step 24), then in step 25, a list of the most similar posts with known search terms may be retrieved. Once the list of similar posts is received, the least similar posts are removed from the list in Step 26. This may be done by generating a similarity score. In one aspect, posts with a similarity score below a predetermined threshold, e.g., less than 0.5, will be removed. In another aspect, relative thresholds may be used such that posts are only considered similar if they are within a relative threshold of similarity to the best matching similar post. In another aspect, a post can be considered to have a greater degree of similarity to another post based on multiple appearances of the same search term. For each post with a similarity score over the threshold, the search terms of that post, which may have been defined by the user who published the post or by another entity, are retrieved in Step 27. In Step 28, the list of search terms may be sorted by the number of times each search term occurs in all of the remaining similar posts and the list may be de-duplicated. In Step 29, a number (e.g., four) of search terms present most often in the most similar posts may be returned. Once those search terms are selected, a search may be run on image provider databases using the search term(s) with the highest similarity score(s) in Step 30, and the resulting candidate images are returned in Step 31.

Candidate images may be displayed to the user on the client device, during the search and/or after the search is completed. The user may preview a candidate image with the user's accompanying text. In one aspect, the system may track the use of images. The system may eliminate as candidates certain images, for example, images that have been selected by users for use with posts more than a predetermined number of times, within a predetermined time period and/or geographic region.

In one aspect, the system presents the user with one or more alternative candidate images from which the user may further choose. Alternative candidate images may be presented in the order they are returned from the image service. In another aspect, the alternative candidate images may be derived from the search terms and may be sorted by characteristics such as accessibility, size, and/or speed of retrieval. For example, images may be retrieved faster via HTTP than HTTPS, and smaller images may load faster than larger images. Accessibility may be determined, for example, by retrieving the image, by sending a “HEAD” HTTP command, or by making a TCP socket connection to the server.

Once the user selects an image, the user may decide to publish the post, after which the post may be added to the corpus of posts in accordance with FIG. 2. The image that was published with the post, or a link (e.g., a URL) thereto, may also be stored. As discussed above, the source image (and/or a link) may also be stored for the purposes of prohibiting repeated frequent use of that image, e.g., by region and/or by user.

FIG. 4 is a flow chart depicting another image identification and selection process after text for a new post has been submitted by the user. In Step 41, the text of the post may be sent from the user client to the server. In one aspect, the system, including the methods depicted herein, may run on a server, and the server may periodically communicate with a plurality of clients allowing users to read and write posts. In Step 42, the text of the submitted post may be mapped to vector space V to identify similar posts. This may be the same vector space as discussed with reference to Step 14 in FIG. 2. In Step 43, the system searches for similar posts in the corpus. In accordance with one aspect of the invention, this list may include a predetermined number of most similar posts, e.g., 100, or may use another threshold determining factor to identify similar posts. The similar posts may be limited to those with known search terms. In accordance with one aspect, similar posts are identified using cosine similarity as the distance function (i.e., the measure of the angle between the two vectors representing the two posts). In Step 44, the system selects search terms from the similar posts. In so doing, the system may not select as search terms certain words deemed unhelpful or non-informational. Once search terms are selected, a search may be run on image provider databases using the search term(s) with the highest similarity score(s) in Step 30, and the resulting candidate images are returned in Step 31.

FIG. 5 shows a general purpose computer on which the system and method of the present disclosure may be implemented. The computer system 900 may execute at least some of the operations described above. Computer system 900 may include processor 910, memory 920, storage device 930, and input/output devices 940. Some or all of the components 910, 920, 930, and 940 may be interconnected via system bus 950. Processor 910 may be single or multi-threaded and may have one or more cores. Processor 910 may execute instructions, such as those stored in memory 920 or in storage device 930. Information may be received and output using one or more input/output devices 940.

Memory 920 may store information and may be a computer-readable medium, such as volatile or nonvolatile memory. Storage device 930 may provide storage for system 900 and may be a computer-readable medium. In various aspects, storage device 930 may be a flash memory device, a floppy disk device, a hard disk device, an optical disk device, or a tape device.

Input/output devices 940 may provide input/output operations for system 900. Input/output devices 940 may include a keyboard, pointing device, and microphone, input/output devices 940 may further include a display unit for displaying graphical user interfaces, speaker, and printer. External data may be stored in accessible external databases 960.

The features described may be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations thereof. The apparatus may be implemented in a computer program product tangibly embodied in an information carrier, e.g., in a machine-readable storage device or in a propagated signal, for execution by a programmable processor; and method steps may be performed by a programmable processor executing a program of instructions to perform functions of the described implementations by operating on input data and generating output.

The described features may be implemented in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. A computer program may include set of instructions that may be used, directly or indirectly, in a computer to perform a certain activity or bring about a certain result. A computer program may be written in any form of programming language, including compiled or interpreted languages, and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

Suitable processors for the execution of a program of instructions may include, by way of example, both general and special purpose microprocessors, and the sole processor or one of multiple processors of any kind of computer. Generally, a processor may receive instructions and data from a read only memory or a random access memory or both. Such a computer may include a processor for executing instructions and one or more memories for storing instructions and data. Generally, a computer may also include, or be operatively coupled to communicate with, one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable, disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data may include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory may be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).

To provide for interaction with a user, the features may be implemented on a computer having a display device such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor for displaying information to the user and a keyboard and a pointing device such as a mouse or a trackball by which the user may provide input to the computer.

The features may be implemented in a computer system that includes a back-end component, such as a data server, or that includes a middleware component, such as an application server or an Internet server, or that includes a front-end component, such as a client computer having a graphical user interface or an Internet browser, or any combination of them. The components of the system may be connected by any form or medium of digital data communication such as a communication network. Examples of communication networks may include, e.g., a LAN, a WAN, and the computers and networks forming the Internet.

The computer system may include clients and servers. A client and server may be remote from each other and interact through a network, such as the described one. The relationship of client and server may arise by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

Numerous additional modifications and variations of the present disclosure are possible in view of the above teachings. It is therefore to be understood that within the scope of the appended claims, the present disclosure may be practiced other than as specifically described herein. 

What is claimed is:
 1. A system for selecting an image to accompany text from a user in connection with a social media post, comprising a processor and a tangible storage medium, said tangible storage medium comprising code executable by the processor for performing steps comprising: a) receiving text from the user; b) performing sentiment analysis on the text to generate search terms; c) identifying candidate images from images in one or more image databases using the search terms; d) presenting one or more candidate images to the user; e) receiving from the user a selected image from the one or more candidate images; f) generating the social media post comprising the selected image and the user-submitted text, wherein the graphical social media post is of a similar size and of a similar shape as the selected image, and wherein the graphical social media post comprises the text displayed superimposed on the selected image; and g) transmitting the social media post for display.
 2. The system of claim 1, wherein the user-submitted text further comprises one or more search terms and step b) comprises identifying those search terms. 